//
//
//#import "FZ_BoFang_One_TableCell_Two_ViewController.h"
//#import "FZ_BoFang_One_CollectionReusableView.h"
//#import "FZ_BoFang_One_TableCell_Two_CollectionViewCell.h"
//#import "FZ_BoFang_One_ViewController.h"
//#import "FZ_BoFang_Two_ViewController.h"
//#import "BaseHeader.h"
//#import <UIImageView+WebCache.h>
//#import "FZ_RightCreatViewDongH.h"
//@interface FZ_BoFang_One_TableCell_Two_ViewController ()<UICollectionViewDataSource,UICollectionViewDelegate,UICollectionViewDelegateFlowLayout>
//@property (nonatomic, retain) UICollectionView *collectionView2;
//@property (nonatomic ,retain) UIImageView *imageViewHeard;
//@property (nonatomic ,retain) UIImageView *header1;
//@property (nonatomic ,retain) UIView *viewSmall;
//@property (nonatomic ,retain) UILabel *labelTwig;
//@property (nonatomic ,retain) UILabel *labelWenZi;
//@property (nonatomic ,retain) UIView *headView;
//@property (nonatomic ,retain) UICollectionReusableView *ReusableView;
//@property (nonatomic, retain) UITapGestureRecognizer *tapTouXiang;
//@end
//
//@implementation FZ_BoFang_One_TableCell_Two_ViewController
//- (void)dealloc
//{
//    [_JieShouModelT release];
//    [_collectionView2 release];
//    [_imageViewHeard release];
//    [_header1 release];
//    [_viewSmall release];
//    [_labelTwig release];
//    [_labelWenZi release];
//    [_headView release];
//    [_ReusableView release];
//    [super dealloc];
//}
//- (void)viewDidLoad {
//    self.navigationController.navigationBar.hidden = YES;
//    [super viewDidLoad];
//    [self creatHeadView];
//    [self collectionView];
//    [self creatRightImage];
//}
//
//- (void)creatRightImage
//{
//    FZ_RightCreatViewDongH *CreatView = [[FZ_RightCreatViewDongH alloc] initWithFrame:CGRectMake(0, 0, 30, 30)];
//    self.tapTouXiang = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(tapTouXiang:)];
//    [CreatView addGestureRecognizer:self.tapTouXiang];
//    [_tapTouXiang release];
////    [imageRight release];
//}
//
//- (void)collectionView
//{
//    UICollectionViewFlowLayout *flowLayoutTwo = [[UICollectionViewFlowLayout alloc] init];
//    
//    self.collectionView2 = [[UICollectionView alloc] initWithFrame:ScreenBound collectionViewLayout:flowLayoutTwo];
//    self.collectionView2.delegate = self;
//    self.collectionView2.dataSource = self;
//    self.collectionView2.backgroundColor = [UIColor whiteColor];
//    [self.view addSubview:self.collectionView2];
//    [_collectionView2 release];
//    
//    [self.collectionView2 registerClass:[UICollectionReusableView class] forSupplementaryViewOfKind:UICollectionElementKindSectionHeader withReuseIdentifier:@"FZ_BoFang_One_CollectionReusableView"];
//    
//    [self.collectionView2 registerClass:[FZ_BoFang_One_TableCell_Two_CollectionViewCell class] forCellWithReuseIdentifier:@"FZ_BoFang_One_TableCell_Two_CollectionViewCell"];
//}
//
//- (CGSize)collectionView:(UICollectionView *)collectionView layout:(UICollectionViewLayout *)collectionViewLayout referenceSizeForHeaderInSection:(NSInteger)section{
//    return CGSizeMake(ScreenWidth, 340);
//}
//
//- (UICollectionReusableView *)collectionView:(UICollectionView *)collectionView viewForSupplementaryElementOfKind:(NSString *)kind atIndexPath:(NSIndexPath *)indexPath{
//    if (kind == UICollectionElementKindSectionHeader) {
//        self.ReusableView = [collectionView dequeueReusableSupplementaryViewOfKind:UICollectionElementKindSectionHeader withReuseIdentifier:@"FZ_BoFang_One_CollectionReusableView" forIndexPath:indexPath];
//        self.ReusableView.backgroundColor = [UIColor greenColor];
//        [self.ReusableView addSubview:self.headView];
//        return self.ReusableView;
//    }
//    else{
//        return nil;
//    }
//}
//
//- (NSInteger)collectionView:(UICollectionView *)collectionView numberOfItemsInSection:(NSInteger)section
//{
//    return 20;
//}
//
//- (UICollectionViewCell *)collectionView:(UICollectionView *)collectionView cellForItemAtIndexPath:(NSIndexPath *)indexPath
//{
//    FZ_BoFang_One_TableCell_Two_CollectionViewCell *cell = [collectionView dequeueReusableCellWithReuseIdentifier:@"FZ_BoFang_One_TableCell_Two_CollectionViewCell" forIndexPath:indexPath];
//    cell.backgroundColor = [UIColor redColor];
//    return cell;
//}
//
//- (CGSize)collectionView:(UICollectionView *)collectionView layout:(UICollectionViewLayout *)collectionViewLayout sizeForItemAtIndexPath:(NSIndexPath *)indexPath
//{
//    return CGSizeMake(171, 220);
//}
//
//
//- (UIEdgeInsets)collectionView:(UICollectionView *)collectionView layout:(UICollectionViewLayout *)collectionViewLayout insetForSectionAtIndex:(NSInteger)section
//{
//    return UIEdgeInsetsMake(10, 10, 0, 10);
//}
//
//
//- (void)collectionView:(UICollectionView *)collectionView didSelectItemAtIndexPath:(NSIndexPath *)indexPath
//{
//    FZ_BoFang_One_ViewController *boFangViewController = [[FZ_BoFang_One_ViewController alloc] init];
//    boFangViewController.Imodel = self.JieShouModelT;
//    [self.navigationController pushViewController:boFangViewController animated:YES];
//    [boFangViewController release];
//}
//
//- (void)scrollViewDidScroll:(UIScrollView *)scrollView
//{
//    CGFloat yy = scrollView.contentOffset.y;
//    if (yy <= 0) {
//        yy = 0 - yy;
//#pragma   奇怪现象
////        dispatch_async(dispatch_get_main_queue(), ^{
//            self.imageViewHeard.frame = CGRectMake(0 - yy, 0 - yy, ScreenWidth + yy + yy, self.headView.frame.size.height / 375 * ScreenWidth + yy);
////        });
//    }
//}
//
//- (void)tapTouXiang:(UITapGestureRecognizer *)sender{
//    FZ_BoFang_Two_ViewController *boFangTwo = [[FZ_BoFang_Two_ViewController alloc] init];
//    self.navigationController.navigationBar.hidden = YES;
//    self.tabBarController.tabBar.hidden = YES;
//    [self.navigationController pushViewController:boFangTwo animated:YES];
//    [boFangTwo release];
//}
//
//- (void)creatHeadView
//{
//    self.headView = [[UIView alloc] initWithFrame:CGRectMake(0, 0, ScreenWidth, 340)];
//    self.headView.backgroundColor = [UIColor redColor];
//    
//    
////    _header1 = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, self.headView.frame.size.width, self.headView.frame.size.height)];
////    _header1.backgroundColor = [UIColor yellowColor];
////    _header1.userInteractionEnabled = YES;
////    [self.headView addSubview:_header1];
////    [_header1 release];
//    
//    self.imageViewHeard = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, self.headView.frame.size.width, self.headView.frame.size.height)];
//    self.imageViewHeard.backgroundColor = [UIColor cyanColor];
//    self.imageViewHeard.userInteractionEnabled = YES;
//    [_imageViewHeard sd_setImageWithURL:[NSURL URLWithString:self.JieShouModelT.pic]];
//    [self.headView addSubview:self.imageViewHeard];
//    [_imageViewHeard release];
//    
////    _viewSmall = [[UIView alloc] initWithFrame:CGRectMake(0, self.header1.frame.size.height - 50, self.headView.frame.size.width, 50)];
////    _viewSmall.alpha = 0.5f;
////    _viewSmall.backgroundColor = [UIColor blueColor];
////    [_imageViewHeard addSubview:_viewSmall];
////    [_viewSmall release];
//    self.labelTwig = [[UILabel alloc] initWithFrame:CGRectMake(0, self.headView.frame.size.height - 60, self.headView.frame.size.width, 30)];
//    self.labelTwig.alpha = 0.3f;
//    self.labelTwig.backgroundColor = [UIColor orangeColor];
//    [self.headView addSubview:self.labelTwig];
//    [_labelTwig release];
//    self.labelWenZi = [[UILabel alloc] initWithFrame:CGRectMake(0, self.labelTwig.frame.origin.y + self.labelTwig.frame.size.height, self.headView.frame.size.width, 30)];
//    self.labelWenZi.alpha = 0.3f;
//    self.labelWenZi.text = @"文字";
//    self.labelWenZi.backgroundColor = [UIColor yellowColor];
//    [self.headView addSubview:self.labelWenZi];
//    [_labelWenZi release];
//}
//@end
